package com.titan.demo.camel.sample.其它样例.定义多个CamelContext;

import com.titan.demo.camel.utils.Context;

public class DemoMain {

	public static void main(String[] args) {
		try {
			Context.initSpring("com/titan/demo/camel/sample/其它样例/定义多个CamelContext/spring/ApplicationContext.xml");
			
			Context.send("camel-1", "direct:start", null, "hello world 11!");
			Context.send("camel-2", "direct:start", null, "hello world 22!");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
